'\" te
.\" Copyright (c) 2008, Sun Microsystems, Inc.  All rights reserved.
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
.TH LIBCONTRACT 3LIB "Feb 25, 2008"
.SH NAME
libcontract \- contract management library
.SH SYNOPSIS
.LP
.nf
cc [ \fIflag\fR... ] `getconf LFS_CFLAGS` \fIfile\fR... \fB-lcontract\fR [ \fIlibrary\fR... ]
#include <\fBlibcontract.h\fR>
.fi

.SH DESCRIPTION
.sp
.LP
Functions in this library provide various interfaces to interact with the
\fBcontract\fR(5) file system. The header provides structure and function
declarations for all library interfaces.
.SH INTERFACES
.sp
.LP
The shared object \fBlibcontract.so.1\fR provides the public interfaces defined
below. See \fBIntro\fR(3) for additional information on shared object
interfaces.
.sp

.sp
.TS
l l
l l .
\fBct_ctl_abandon\fR	\fBct_ctl_ack\fR
\fBct_ctl_adopt\fR	\fBct_ctl_nack\fR
\fBct_ctl_newct\fR	\fBct_ctl_qack\fR
\fBct_dev_status_get_aset\fR	\fBct_dev_status_get_dev_state\fR
\fBct_dev_status_get_minor\fR	\fBct_dev_status_get_noneg\fR
\fBct_dev_tmpl_clear_noneg\fR	\fBct_dev_tmpl_get_aset\fR
\fBct_dev_tmpl_get_minor\fR	\fBct_dev_tmpl_get_noneg\fR
\fBct_dev_tmpl_set_aset\fR	\fBct_dev_tmpl_set_minor\fR
\fBct_dev_tmpl_set_noneg\fR	\fBct_event_free\fR
\fBct_event_get_ctid\fR	\fBct_event_get_evid\fR
\fBct_event_get_flags\fR	\fBct_event_get_nevid\fR
\fBct_event_get_newct\fR	\fBct_event_get_type\fR
\fBct_event_read\fR	\fBct_event_read_critical\fR
\fBct_event_reliable\fR	\fBct_event_reset\fR
\fBct_pr_event_get_exitstatus\fR	\fBct_pr_event_get_gcorefile\fR
\fBct_pr_event_get_pcorefile\fR	\fBct_pr_event_get_pid\fR
\fBct_pr_event_get_ppid\fR	\fBct_pr_event_get_sender\fR
\fBct_pr_event_get_senderct\fR	\fBct_pr_event_get_signal\fR
\fBct_pr_event_get_zcorefile\fR	\fBct_pr_status_get_contracts\fR
\fBct_pr_status_get_fatal\fR	\fBct_pr_status_get_members\fR
\fBct_pr_status_get_param\fR	\fBct_pr_status_get_aux\fR
\fBct_pr_status_get_creator\fR	\fBct_pr_status_get_ctid\fR
\fBct_pr_status_get_fmri\fR	\fBct_pr_tmpl_get_fatal\fR
\fBct_pr_tmpl_get_param\fR	\fBct_pr_tmpl_get_transfer\fR
\fBct_pr_tmpl_set_fatal\fR	\fBct_pr_tmpl_set_param\fR
\fBct_pr_tmpl_set_transfer\fR	\fBct_status_free\fR
\fBct_status_get_cookie\fR	\fBct_status_get_critical\fR
\fBct_status_get_holder\fR	\fBct_status_get_id\fR
\fBct_status_get_informative\fR	\fBct_status_get_nevents\fR
\fBct_status_get_nevid\fR	\fBct_status_get_ntime\fR
\fBct_status_get_qtime\fR	\fBct_status_get_state\fR
\fBct_status_get_type\fR	\fBct_status_get_zoneid\fR
\fBct_status_read\fR	\fBct_tmpl_activate\fR
\fBct_tmpl_clear\fR	\fBct_tmpl_create\fR
\fBct_tmpl_get_cookie\fR	\fBct_tmpl_get_critical\fR
\fBct_tmpl_get_informative\fR	\fBct_tmpl_get_svc_aux\fR
\fBct_tmpl_get_svc_fmri\fR	\fBct_tmpl_set_cookie\fR
\fBct_tmpl_set_critical\fR	\fBct_tmpl_set_informative\fR
\fBct_tmpl_set_svc_aux\fR	\fBct_tmpl_set_svc_fmri\fR
.TE

.SH FILES
.sp
.ne 2
.na
\fB\fB/usr/lib/libcontract.so.1\fR\fR
.ad
.sp .6
.RS 4n
shared object
.RE

.sp
.ne 2
.na
\fB\fB/usr/lib/64/libcontract.so.1\fR\fR
.ad
.sp .6
.RS 4n
64-bit shared object
.RE

.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(7) for descriptions of the following attributes:
.sp

.sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE	ATTRIBUTE VALUE
_
Interface Stability	Committed
_
MT-Level	Safe
.TE

.SH SEE ALSO
.sp
.LP
.BR pvs (1),
.BR Intro (3),
.BR contract (5),
.BR attributes (7),
.BR lfcompile (7)
